#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Description:
import constants
from modules.qanno import run_tests
from modules.qdisk import parse_disk_info
from qdfs.qdfsBasic import QDFSBasic
from qdfs.qdfsFailGroup import QDFSFailGroup
from qdfs.qdfsStability import QDFSStability
from utils.logger import Logger

log = Logger()


def main():
    constants.local_data.disk_info = parse_disk_info(constants.parse_args.ipaddr)
    run_tests(QDFSBasic, constants.parse_args)
    run_tests(QDFSStability, constants.parse_args)
    run_tests(QDFSFailGroup, constants.parse_args)


if __name__ == '__main__':
    main()
